<template>
    <div class="goodsdesc-container">
        <h3>{{desclist.title}}</h3>
        <hr>
        <div class="content" v-html="desclist.content"></div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            desclist:[]
        }
    },
    methods: {
       async getGoodsDesc(){
           const {data} =await this.$http.get('/api/'+this.id)
           if(data.status===0) return(this.desclist=data.message[0])
        }
    },
    props:['id']
}
</script>

<style lang="less" scoped>
.goodsdesc-container{
    .content{
        img{
            width: 100% ;
    }
    }
}
</style>